package com.cat.model.common.util;

import java.util.Date;
import java.util.Random;

import com.alonew.core.commons.util.TimeUtil;

public class OrderNumUtil {
	public static String createOrderNum(){
		//8位日期+8位随机数
		String date = TimeUtil.format("yyyyMMdd", new Date());
		
		int randomNum = 10000000 + new Random().nextInt(90000000);
		
		return date + String.valueOf(randomNum);
	}
	
	public static void main(String[] args){
		
	}
}
